
package com.scalar.chiptrack.operations.packingslip;


/**
 * LotQtyPullAudit... is a data structure thats used
 * to store audit details about how much qty was pulled
 * from a lot -- while generating packingslip
 *
 * @author Balaram Putta
 */
public class LotQtyPullAudit {

    private String  m_salesOrderNumber = null;
    private int     m_lineItemNumber   = -1;   
    private String  m_psLabel          = null;
    private String  m_lotNumber        = null;
    private int     m_qtyPulled        = 0;
    private String  m_qtyPulledBy      = null;
    private String  m_qtyPulledOn      = null;
    private String  m_partNumber       = null;

    public LotQtyPullAudit( String salesOrderNumber, 
                            int lineItemNumber, 
                            String psLabel, 
                            String lotNumber, 
                            int qtyPulled, 
                            String qtyPulledBy,
                            String qtyPulledOn,
                            String partNumber )
    {
                                 
        m_salesOrderNumber = salesOrderNumber;
        m_lineItemNumber   = lineItemNumber;
        m_psLabel          = psLabel;
        m_lotNumber        = lotNumber;
        m_qtyPulled        = qtyPulled;
        m_qtyPulledBy      = qtyPulledBy;
        m_qtyPulledOn      = qtyPulledOn;
        m_partNumber       = partNumber;
    }
    
    public String getSalesOrderNumber() 
    {
        return m_salesOrderNumber;
    }
    public void setSalesOrderNumber( String salesOrderNumber ) 
    {
        m_salesOrderNumber = salesOrderNumber;
    }
    
    public int getLineItemNumber() 
    {
        return m_lineItemNumber;
    }
    public void setLineItemNumber( int lineItemNumber ) 
    {
        m_lineItemNumber = lineItemNumber;
    }
    
    public String getPsLabel() 
    {
        return m_psLabel;
    }
    public void setPsLabel( String psLabel ) 
    {
        m_psLabel = psLabel;
    }
    
    public String getQtyPulledBy() 
    {
        return m_qtyPulledBy;
    }
    public void setQtyPulledBy( String qtyPulledBy ) 
    {
        m_qtyPulledBy = qtyPulledBy;
    }
    
    public String getLotNumber() 
    {
        return m_lotNumber;
    }
    public void setLotNumber( String lotNumber ) 
    {
        m_lotNumber = lotNumber;
    }
    
    public int getQtyPulled() 
    {
        return m_qtyPulled;
    }
    public void setQtyPulled( int qtyPulled ) 
    {
        m_qtyPulled = qtyPulled;
    }
    
    public String getQtyPulledOn() 
    {
        return m_qtyPulledOn;
    }
    public void setQtyPulledOn( String qtyPulledOn ) 
    {
        m_qtyPulledOn = qtyPulledOn;
    }

    public String getPartNumber()
    {
        return m_partNumber;
    }
    public void setPartNumber( String partNumber )
    {
        m_partNumber = partNumber;
    }
    
    public String toString() 
    {
        
        StringBuffer buf = new StringBuffer();
        
        buf.append ("[Lot Number: ").append (m_lotNumber);
        buf.append ("] [SO Number: ").append (m_salesOrderNumber);
        buf.append ("] [LineItem Number: ").append (m_lineItemNumber);
        buf.append ("] [Part Number: ").append (m_partNumber);
        buf.append ("] [Qty Pulled: ").append (m_qtyPulled);
        buf.append ("] [Pulled By: ").append (m_qtyPulledBy);
        buf.append ("] [Pulled On: ").append (m_qtyPulledOn);
        buf.append ("]");
        
        return buf.toString();
    }
}